Skip to content

Conversation

@fmease
Copy link
Member

@fmease fmease commented Oct 27, 2025

They were fully untested and undocumented previously despite being stable.
Context: #t-rustdoc > `test_harness` langstr @ 💬.

While at it, I've also improved the documentation for code block attributes in general.
I was only inspired to do so because there was no good place for test_harness and because it got hard to skim due to a lack of subsubsections.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. labels Oct 27, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 27, 2025

r? @GuillaumeGomez

rustbot has assigned @GuillaumeGomez.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

None,
Some(Vec<String>),
}

Copy link
Member Author

@fmease fmease Oct 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not any old ENBF1 (variant), it's ABNF2 specifically (from IETF RFC 5234) which I previously didn't know about (and thus was confused about the syntax).

Footnotes

  1. Extended Backus-Naur form.

  2. Augmented Backus-Naur form.

/// delimited-attribute-list = OPEN-CURLY-BRACKET attribute-list CLOSE-CURLY-BRACKET
/// token-list = [sep] token *(sep token) [sep]
/// comment = OPEN_PAREN *(all characters) CLOSE_PAREN
/// comment = OPEN_PAREN *<all characters except closing parentheses> CLOSE_PAREN
Copy link
Member Author

@fmease fmease Oct 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prose terminals are to be denoted by <…> not by (…) (which is grouping) per IETF RFC 5234 (Ctrl+F for prose-val).

@fmease fmease force-pushed the rustdoc-test-n-doc-doctest-test-harness branch from eab1d61 to 5e7f083 Compare October 27, 2025 18:05
@rust-log-analyzer

This comment has been minimized.

@fmease fmease force-pushed the rustdoc-test-n-doc-doctest-test-harness branch from 5e7f083 to c687f89 Compare October 27, 2025 18:53
@rust-log-analyzer

This comment has been minimized.

@fmease fmease force-pushed the rustdoc-test-n-doc-doctest-test-harness branch from c687f89 to f71d897 Compare October 27, 2025 19:41
@rust-log-analyzer

This comment has been minimized.

@fmease fmease force-pushed the rustdoc-test-n-doc-doctest-test-harness branch from f71d897 to 9a78729 Compare October 27, 2025 20:24
@rust-log-analyzer

This comment has been minimized.

@fmease fmease force-pushed the rustdoc-test-n-doc-doctest-test-harness branch from 9a78729 to 3a17eba Compare October 27, 2025 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants